public class NGuessNumber {
int[]answer=new int[4];

        public int[]generateAnswers(){
            answer[0]=(int)(Math.random()*10);
            answer[1]=(int)(Math.random()*10);
            answer[2]=(int)(Math.random()*10);
            answer[3]=(int)(Math.random()*10);
            return answer;
        }
//        剑神不败
        public static  void  main(String [] ages){
            NGuessNumber ngn=new NGuessNumber();
            int []answers=ngn.generateAnswers();
            for (int i=0;i<answers.length;i++){
                System.out.println(answers[i]);
            }
        }
}

